<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>店铺广告版位修改页  - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/buy.css" type="text/css" rel="stylesheet" />
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
</head>
<style>
.pl_line { width: 710px; font-size:12px;}
.pl_zone {color: #000000; display: block; float: left; line-height: 24px; overflow-x: hidden; overflow-y: hidden; word-wrap: break-word; border-bottom: #EAEAEA dotted 1px; padding: 10px; }
.pl {width: 710px;}
.pl_zone span {color: #999999;}
UL, LI {list-style-image: none; list-style-position: outside; list-style-type: none; margin:0; padding: 0;}
.pl_txt {color: #333333; line-height: 22px;}
</style>
<body>
[#include "../include/shop_top.html"/]
<div class="w1168">
	[#include "../common/image_upload.html"/]
	[#include "店铺中心_导航.html"/]
	<div class="user_right">
        <div class="user_title2">店铺广告</div>  
		<div class="clear10"></div> 
	    <form class="ropt">
		<input type="submit" value="返回列表" onclick="this.form.action='list.jspx?pageNo=${pageNo}';"/>
     	</form>  
          
        <form method="post" action="update.jspx" id="jvForm">
        <table width="100%" class="pn-ftable" cellpadding="2" cellspacing="1" border="0">
        <tr>
        <td width="12%"><span class="pn-frequired">*</span>广告名称:</td>
        <td colspan="1" width="38%" class="pn-fcontent">
        <input type="text" maxlength="100" name="name" value="${advertise.name!}" class="required"/></td>
        <td width="12%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>版位名称:</td>
        <td colspan="1" width="38%" class="pn-fcontent">
        <select name="adspaceId"/>
        [#list adspaceList as adspace]
        <option value="${adspace.id}" [#if advertise.adspace.id==adspace.id]selected[/#if]>${adspace.name!}</option>
        [/#list]
        </select>
        </td></tr>
        <tr><td width="12%"><span class="pn-frequired">*</span>广告内容:</td>
        <td colspan="3" width="88%" class="pn-fcontent">
        <div id="attr_image">
        <p class="attr">图片地址: <input type="text" id="uploadImgPath1" name="attr_image_url" value="${(attr.image_url)!?html}" class="required" maxlength="255" style="width:300px;"/></p>
        <p class="attr">图片上传: <span id="ufc1"><input type="file" id="uploadFile1"/></span> <input type="button" value="上传" onclick="upload(1);"/><input type="hidden" id="mark1" value="false"/></p>
        <p class="attr">图片尺寸: <input type="text" name="attr_image_width"   value="${(attr.image_width)!?html}" maxlength="50" style="width:70px;"/> * 
        <input type="text" name="attr_image_height" value="${(attr.image_height)!?html}"  maxlength="50" style="width:70px;"/> <span class="pn-fhelp">（宽×高）</span></p>
        <p class="attr">链接地址: <input type="text" name="attr_image_link" value="${(attr.image_link)!'http://'?html}" maxlength="255" style="width:300px;"/></p>
        <p class="attr">链接提示: <input type="text" name="attr_image_title" value="${(attr.image_title)!?html}" maxlength="255" style="width:300px;"/></p>
        <p class="attr">链接目标: 
        <label><input type="radio" value="_blank" name="attr_image_target" [#if attr.image_target=="_blank"]checked="checked"[/#if]/>新窗口</label> 
        <label><input type="radio" value="_self" name="attr_image_target" [#if attr.image_target=="_self"]checked="checked"[/#if]/>原窗口</label></p>
        </div>
        </td>
        </tr>
        <tr><td width="12%" class="pn-flabel pn-flabel-h">开始时间:</td>
        <td colspan="1" width="38%" class="pn-fcontent">
        <input type="text" name="startTime" value="${advertise.startTime!}" class="Wdate" style="width:120px" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/></td>
        <td width="12%" class="pn-flabel pn-flabel-h">结束时间:</td>
        <td colspan="1" width="38%" class="pn-fcontent">
        <input type="text" name="endTime" value="${advertise.endTime!}" class="Wdate" style="width:120px" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/></td>
        </tr>
        <tr><td width="12%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>点击次数:</td>
        <td colspan="1" width="38%" class="pn-fcontent"><input type="text" value="0" name="clickCount" value="${advertise.clickCount!}" class="required digits" style="width:70px;"/></td>
        <td width="12%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>展示次数:</td>
        <td colspan="1" width="38%" class="pn-fcontent"><input type="text" value="0" name="displayCount" value="${advertise.displayCount!}" class="required digits" style="width:70px;"/></td>
        </tr>
        <tr><td width="12%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>权重:</td>
        <td colspan="1" width="38%" class="pn-fcontent"><input type="text" value="1" name="weight" value="${advertise.weight!}" class="required digits" style="width:70px"/></td>
        <td width="12%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>启用:</td>
        <td colspan="1" width="38%" class="pn-fcontent">
        <label><input type="radio" value="true" [#if advertise.enabled]checked="checked"[/#if] name="enabled"/>是</label> 
        <label><input type="radio" value="false" name="enabled" [#if !advertise.enabled]checked="checked"[/#if]/>否</label></td>
        </tr>
        <tr><td colspan="4" class="pn-fbutton">
        <input type="hidden" name="id" value="${advertise.id}"/>
        <input type="hidden" name="pageNo" value="${pageNo}"/>
        <input type="submit" value="提交" class="menu_ok"/> &nbsp; <input type="reset" value="重置" class="menu_ok"/></td>
        </tr>
        </table>
        </form>
       </div>
	</div>
	<div class="clear10"></div>
    <div class="clear10"></div>
</div>
[#include "../include/footer_information_bar.html"/]
</body>
</html>